<!doctype html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>Document</title>
	<style type="text/css">
	*{
		font-family:微软雅黑;
		font-size:24px;
	}
h1:hover{
	background: #999;
}

	</style>
</head>
<body>
	
</body>
<script type="text/javascript">
	for(i=0;i<10;i++){
		if(i%2==0){
			document.write('<h1 style="background:#ccc">'+i+'</h1>')
		}else{
			document.write('<h1>'+i+'</h1>')
		}
		
	}


</script>
</html>